package com.dingreading.cloud.ssxcx.service;

import com.dingreading.cloud.common.util.PageUtil;
import com.dingreading.cloud.ssxcx.dto.XcxStudentLearningProgressDto;
import com.dingreading.cloud.ssxcx.entity.XcxStudentHomework;
import com.dingreading.cloud.ssxcx.entity.XcxStudentLearningProgress;
import com.mybatisflex.core.paginate.Page;
import com.mybatisflex.core.service.IService;

/**
 * 小程序学生学习进度表 服务层。
 *
 * @author EDY
 * @since 2025-08-18
 */
public interface XcxStudentLearningProgressService extends IService<XcxStudentLearningProgress> {

    XcxStudentLearningProgress getLatest(String studentUid, String subjectLessonUid, Integer materialStage);

    Page<XcxStudentLearningProgressDto> pageListLearning(PageUtil pageUtil, String agencyUid, String storeUid, String studentUid, String projectUid);

    boolean updateByHomeworkUid(XcxStudentHomework homework, String versionUid);

}
